<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>用户信息</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- 引入 Bootstrap -->
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">

</head>
<body background="img/2.jpg">
<div th:replace="commons/managerbar::topbar">
</div>
<div class="table-responsive">
    <table class="table table-striped table-sm">
        <thead>
        <tr>
            <th>Name</th>
            <th>Password</th>
            <th>Phone</th>
            <th>Email</th>
            <th>look</th>
            <th>manager</th>
            <th>Date</th>
            <th>修改</th>
            <th>删除</th>
        </tr>
        </thead>
        <tbody>
        <tr th:each="user:${users}">
            <td th:text="${user.name}"></td>
            <td th:text="${user.password}"></td>
            <td th:text="${user.phone}"></td>
            <td th:text="${user.email}"></td>
            <td th:text="${user.look}"></td>
            <td th:text="${user.manager}"></td>
            <td th:text="${#dates.format(user.data,'yyyy-MM-dd')}"></td>
            <td>
                <a th:href="@{'/manager/user/skip?id='+${user.id}}">点击修改</a>
            </td>
            <td>
                <a th:href="@{'/manager/user/delete?id='+${user.id}}">点击删除</a>
            </td>
        </tr>
        </tbody>
    </table>
</div>
<!--<div th:replace="commons/paging::pagebolg"></div>-->
<div th:replace="commons/paging::pageUser"></div>
    <div style="width: 200px;float: left;color: red">
        <a th:text="${msg}"></a>
    </div>
<a href="/home">返回主页</a>
</body>
</html>